import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'

// 创建应用实例
const app = createApp(App)

// 配置axios
axios.defaults.baseURL = process.env.VUE_APP_API_BASE_URL || '/api'
app.config.globalProperties.$axios = axios

// 使用插件
app.use(store)
app.use(router)

// 挂载应用
app.mount('#app')

export default app
